package com.forekenow.work0723;

public class NoteBook {
    private char color;
    private int cpu;

    public char getColor() {
        return color;
    }

    public void setColor(char color) {
        this.color = color;
    }

    public int getCpu() {
        return cpu;
    }

    public void setCpu(int cpu) {
        this.cpu = cpu;
    }

    public  NoteBook(char color1,int cpu1){
        this.color = color1;
        this.cpu = cpu1;
    }
    public  NoteBook(){
        this.cpu = 3050;
        this.color = '绿';
    }
    public void showall(NoteBook b){
        System.out.print(b.getColor()+"\t");
        System.out.println(b.getCpu());
    }

    public static void main(String[] args) {
        NoteBook a = new NoteBook();
        NoteBook aa = new NoteBook('黄',3);
        a.showall(a);
        aa.showall(aa);


    }
}
